ACCOUNT HISTORY

	<table width ="100%">
		<tr>
			<td>
				Order Date
			</td>
			<td>
				Item
			</td>
			<td>
				Quantity
			</td>
			<td>
				Discount
			</td>
			<td>
				Total
			</td>
			<td>
				&nbsp;
			</td>
			
		</tr>

<?php 

	forEach($orders as $order){
?>

		<tr>
			<td>
				<?=$order->order_created_on?>
			</td>
			<td>
				<?=$order->name?>
			</td>
			<td>
				<?=$order->deal_item_quantity?>
			</td>
			<td>
				<?=$order->discount?>
			</td>
			<td>
				<?=$order->total_amount?>
			</td>
			<td>
				<a href="<?=ACCOUNTURL?>/orderedealdetails/<?=$order->ordered_deal_id?>">view</a>
			</td>
		</tr>

<?php 
	}
?>
	</table>